package cn.kgc.goodsdemo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Goodsdetail {
    private Integer id;

    private Integer sortid;

    private String name;

    private String address;

    private Float price;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdate;

    private Integer remaining;

    @Override
    public String toString() {
        return "Goodsdetail{" +
                "id=" + id +
                ", sortid=" + sortid +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", price=" + price +
                ", createdate=" + createdate +
                ", remaining=" + remaining +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSortid() {
        return sortid;
    }

    public void setSortid(Integer sortid) {
        this.sortid = sortid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Integer getRemaining() {
        return remaining;
    }

    public void setRemaining(Integer remaining) {
        this.remaining = remaining;
    }
}